/* eslint-disable */
var filter = function (val) {
  var data = new Date(val)
  var y = data.getFullYear()
  var m = (data.getMonth() + 1).toString().padStart(2, 0)
  var d = data.getDate().toString().padStart(2, 0)
  var h = data.getHours().toString().padStart(2, 0)
  var mm = data.getMinutes().toString().padStart(2, 0)
  var s = data.getSeconds().toString().padStart(2, 0)
  return y + '-' + m + '-' + d + ' ' + h + ':' + mm + ':' + s
}
export default filter
